import serviceStatus from "../../../../enum/service-status";
import serviceAciton from "../../../../enum/service-action";
import behavior from "../behavior";
import {getDataSet} from "../../../../utils/utils";

Component({
  // 导入behavior后，底下的属性已经被导入了
  behaviors: [behavior],
  data: {
    serviceStatusEnum: serviceStatus,
    serviceAcitonEnum: serviceAciton
  },
  methods: {
    handleUpdateStatus(event) {
      const action = getDataSet(event, 'action')
      this.triggerEvent('update', {action})
    },
    handleEditService(event) {

      this.triggerEvent('edit')
    }
  }
});
